﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 操作按钮表
    /// </summary>
    public partial class TAction
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 操作编码
        /// </summary>
        public string ActionCode { get; set; }
        /// <summary>
        /// 操作名称
        /// </summary>
        public string ActionName { get; set; }
        /// <summary>
        /// 显示位置 ：1-表单内；2-表单上
        /// </summary>
        public int? Position { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; }
        /// <summary>
        /// 方法名称
        /// </summary>
        public string Method { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 状态：0-禁用；1-启用
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 样式名称
        /// </summary>
        public string CssClassName { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        public int DisplayOrder { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public int? CreateUserId { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreateUserName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改用户Id
        /// </summary>
        public int? ModifyUserId { get; set; }
        /// <summary>
        /// 修改用户名称
        /// </summary>
        public string ModifyUserName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// 当前登陆人Id
        /// </summary>
        [NotMapped]
        public int NowUserId { get; set; }

        /// <summary>
        /// 当前登陆人真实姓名
        /// </summary>
        [NotMapped]
        public string NowUserRealName { get; set; }
    }
}
